import React, { Component } from 'react';
import Denglu from './Denglu'
import Zhuce from './Zhuce'


class Dengluzhuce extends Component {
    constructor(props) {
        super(props)
        this.state = {
            loggsuc: true
        }
    }
aa=()=>{
   this.setState({
    loggsuc:false
   })

}
bb=()=>{
    this.setState({
     loggsuc:true
    })
    
 }
 loginGetHome2=()=>{
     this.props.op()
 }
 
    render() {
        if (this.state.loggsuc) {
            return (
                <div>
                    <Denglu lo={this.aa} yu={this.loginGetHome2}/>
                </div>
            );
        } else {
            return (
                <div>
                    <Zhuce ol={this.bb}/>
                </div>
            )
        }
       
    }
}

export default Dengluzhuce;
